package cn.topcode.unicorn.utils;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class RenderUtil {

	public static void renderJson(Object obj, HttpServletResponse response) throws IOException {
		response.getWriter().write(JsonUtil.toJson(obj));
	}

	public static void renderText(String text, HttpServletResponse response) throws IOException {
		response.getWriter().write(text);
	}

}
